var e = getApp(), a = require("../../../api.js"), t = require("../../../wxParse/wxParse.js"), s = require("../../../utils/function.js");

Page({
    data: {
        img: s.userImg,
        knowledge: [],
        knowledgeCheck: ""
    },
    checkHandler: function(e) {
        this.setData({
            knowledgeCheck: e.currentTarget.dataset.index
        });
    },
    onLoad: function(a) {
        a.uid && e.shareCouponsMessage(a.uid);
    },
    onReady: function() {},
    onShow: function() {
        var s = this;
        e.request({
            url: a.article.getArticle,
            method: "post",
            data: {
                type: 9
            },
            success: function(e) {
                t.wxParse("article", "html", e.data.data[0].content, s, 5);
                var a = e.data.data;
                console.log(a), s.setData({
                    knowledge: a
                });
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onShareAppMessage: function() {
        var a = e.shareAppMessage().title, t = e.shareAppMessage().imageUrl, s = e.shareAppMessage().desc, n = e.shareAppMessage().path;
        return console.log(e.shareAppMessage()), {
            title: a,
            imageUrl: t,
            desc: s,
            path: n
        };
    }
});